import requests

def get_header():
    resp = requests.post(url="http://ihrm-test.itheima.net/api/sys/login",
                         json={"mobile": "13800000002", "password": "123456"})
    token = "Bearer " + resp.json().get("data")
    header = {"Content-Type": "application/json", "Authorization": token}
    return header

if __name__ == '__main__':
    print(get_header())